﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<ThesisSystem.Models.Thesis>" %>

<!DOCTYPE html>
<html>
<head runat="server">
    <title>编辑论文信息</title>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>
    <script src="../../Scripts/jquery.js" type="text/javascript"></script>
    <link href="<%:  Url.Content("~/Content/CSS/searchstyle.css") %>" rel="stylesheet" type="text/css" />
     <link href="<%: Url.Content("~/Content/themes/base/jquery-ui.css")  %>" rel="stylesheet" type="text/css" />
    <script src="<%:  Url.Content("~/Scripts/GetDatetextBox.js") %>" type="text/javascript"></script>
    <style type="text/css">  #ThesisTitle {width:98%;}</style>
</head>
<body>
<div class="Search_thesis">
    <div id="details_Edit" class="sch_area">
        <% using (Html.BeginForm())
           { %>
        <%: Html.ValidationSummary(true) %>
        <h3> 修改论文信息</h3>
        <%: Html.HiddenFor(model => model.ThesisID) %>
        <%: Html.HiddenFor(model => model.UserID) %>
        <table class="detail_tb">
            <tbody>
                <tr>
                    <th align="center" class="detail_th" width="80">
                        标题
                    </th>
                    <td width="350" colspan="3">
                        <%: Html.EditorFor(model => model.ThesisTitle)%>
                        <%: Html.ValidationMessageFor(model => model.ThesisTitle)%>
                    </td>
                    <th align="center" class="detail_th" width="60">
                        评审状态
                    </th>
                    <td width="100">
                    <%: Html.HiddenFor(model => model.ReviewStatus) %>
                        <%:Html.DisplayFor(model => model.ReviewStatus) %>
                         
                    </td>
                    <th align="center" class="detail_th" width="50">
                        得分
                    </th>
                    <td width="50">
                    <%: Html.HiddenFor(model => model.Score) %>
                        <%:Html.DisplayFor(model => model.Score) %>
                    </td>
                </tr>
                <tr>
                    <th align="center" class="detail_th" width="60">
                        文件名
                    </th>
                    <td width="700" colspan="7">
                    <%: Html.HiddenFor(model => model.FileName) %>
                        <%:Html.DisplayFor(model => model.FileName) %>
                    </td>
                </tr>
                <tr>
                    <th align="center" class="detail_th" width="50">
                        类型
                    </th>
                    <td width="400" colspan="5">
             <%: Html.DropDownList("ThesisType")%>
            <%: Html.ValidationMessageFor(model => model.ThesisType) %>
                    </td>
                    <th align="center" class="detail_th" width="50">
                        大小
                    </th>
                    <td width="200">
                    <%: Html.HiddenFor(model => model.FileSize) %>
                        <%:Html.DisplayFor(model => model.FileSize) %>
                    </td>
                </tr>
                <tr>
                    <th align="center" class="detail_th" width="150">
                        论文开始时间
                    </th>
                    <td width="200" colspan="2">
                        <%: Html.TextBox("StartDate",Model.StartDate.ToString("yyyy-MM-dd")) %>
                        <%: Html.ValidationMessageFor(model => model.StartDate) %>
                    </td>
                    <th align="center" class="detail_th" width="150">
                        论文结束时间
                    </th>
                    <td width="200" colspan="2">
                       <%: Html.TextBox("EndDate",Model.EndDate.ToString("yyyy-MM-dd")) %>
                        <%: Html.ValidationMessageFor(model => model.EndDate) %>
                    </td>
                    <th align="center" class="detail_th" width="60">
                        上传时间
                    </th>
                    <td width="200" colspan="2">
                    <%: Html.HiddenFor(model => model.UploadDate) %>
                        <%:Html.DisplayFor(model => model.UploadDate) %>
                    </td>
                </tr>
                </tbody>
                </table>
             <p align="center"  style=" height:30px; border:1px solid #c3e1c9;margin: 1px;  padding:1px">
             <%: Html.ActionLink("移除文件", "Remove", new { id = Model.ThesisID }, new { id="RemoveFile"})%>
                            <input type="submit" value="保存"  id="EditSubmit1"/>                   
                            <%: Html.ActionLink("返回列表", "Index", null, new { id="EditBack"})%>
                            <input type="button" onclick="javascript:window.history.go(-1);" value="返回上一页" id="Back"/>
                            <% } %>
           </p>
           
    </div>
    <%:Content.Script("jquery-min.js",Url) %>
    <%:Content.Script("jquery-ui-min.js",Url) %>
    <script type="text/javascript">
       $("#EditSubmit1").button();
       $("#EditBack").button();
       $("#RemoveFile").button();
       $("#Back").button();
    </script>
    </div>
</body>
</html>
